package com.openingedu.mba.common;

import java.io.File;

import android.os.Environment;

public class CommonSetting {

	public static String assets = "file:///android_asset/";
	
	public static String dataPath = "/data/data/com.lurencun.android.topicbank/files/";
	
	public static String getSDPath() {
		File sdDir = null;
		// 判断sd卡是否存在
		boolean sdCardExist = Environment.getExternalStorageState().equals(
				android.os.Environment.MEDIA_MOUNTED);
		// 获取跟目录
		if (sdCardExist) {
			sdDir = Environment.getExternalStorageDirectory();
		}
		return sdDir.toString();
	}
	
	public static String getStorePath() {
		return getSDPath() + dataPath;
	}
}
